package com.lion.ball.common.spring.config;

import com.lion.common.spring.openapi.BaseGroupedOpenApiConfiguration;
import org.springdoc.core.models.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Chris Chan
 * Create On 2025/8/23 下午1:00
 * Use for:
 * Explain:
 */
@Configuration
public class CommonGroupedOpenApiConfiguration implements BaseGroupedOpenApiConfiguration {

    @Bean
    public GroupedOpenApi uaa() {
        return build(1, "uaa", "授权",
                "com.lion.common.modules.uaa");
    }

    @Bean
    public GroupedOpenApi admin() {
        return build(2, "admin", "管理(WEB)");
    }

    @Bean
    public GroupedOpenApi file() {
        return build(3, "file", "文件",
                "com.lion.common.modules.file");
    }

    @Bean
    public GroupedOpenApi trade() {
        return build(4, "orderfood", "点餐");
    }
}

